#include "ImagenRGB.h"


void ImagenRGB::readImageFile(char * archima)
{
    RChannel=lee(archima, 0);
    GChannel=lee(archima, 1);
    BChannel=lee(archima, 2);

    dim[0]=RChannel.dim[0];
    dim[1]=RChannel.dim[1];

}

void ImagenRGB::writeImageFile(char * archima){
    		escribe(archima, RChannel, GChannel, BChannel);

    }
void  ImagenRGB::operator=(ImagenRGB & im2){
	dim[0]=im2.dim[0];
	dim[1]=im2.dim[1];
	RChannel=im2.RChannel;
     GChannel=im2.GChannel;
      BChannel=im2.BChannel;
	}